package lxs.swift.tool.http;


import com.alibaba.fastjson2.JSON;

public class JsonArrayPoster extends SegSender {

    public JsonArrayPoster(Config config) {
        super(config, "[", ",", "]");
        config.header("Content-Type", "application/json");
        super.open();
    }

    public JsonArrayPoster send(Object value) {
        if (value == null) return this;
        String s = JSON.toJSONString(value);
        super.send(s);
        return this;
    }
}
